Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Media Functions / Sound Media Handler Functions


SetSoundMediaBalance

The SetSoundMediaBalance function sets the balance of a sound media.

pascal HandlerError SetSoundMediaBalance (MediaHandler mh, 
                                          short balance);
mH
Contains a reference to a media handler. You obtain this reference from the GetMediaHandler function, which is described on page 2-265.
balance
Specifies the balance setting of the media handler as a 16-bit, fixed-point value. The high-order 8 bits contain the integer part of the value; the low-order 8 bits contain the fractional part. Valid balance values range from -1.0 to 1.0. Negative values emphasize the left sound channel, and positive values emphasize the right sound channel; a value of 0 specifies neutral balance.
ERROR CODES
Component Manager errors


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996